package com.ganlebao.study.springcloudribbon;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import static com.ganlebao.study.springcloudribbon.SpringCloudRibbonApplication.ECHO_SERVER;

@SpringBootApplication
@EnableFeignClients
@RibbonClient(name = ECHO_SERVER)
public class SpringCloudRibbonApplication {
    public static final String ECHO_SERVER = "echo-server";

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudRibbonApplication.class, args);
    }

}
